package com.hzqy.persistence.dao.statistics;

import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.hzqy.persistence.dao.core.PersistenceDao;
import com.hzqy.web.vo.StatActiveUserPvUvVo;
import com.hzqy.web.vo.stat.StatUserLoginHistoryVo;
import com.hzqy.web.vo.system.SysConfigVo;

@Repository
public class UserPvUvDao extends PersistenceDao<StatActiveUserPvUvVo, Integer>{
	protected final Logger LOG = LoggerFactory.getLogger(UserPvUvDao.class);
	
	public int selectUserPvUvCount(StatActiveUserPvUvVo statActiveUserPvUvVo){
		String namespace = this.getNamespace();
		return getSqlSession().selectOne(namespace + "selectUserPvUvCount", statActiveUserPvUvVo);
	}
	
	public List<StatActiveUserPvUvVo> selectUserPvUvList(Map<String,Object> map){
		String namespace = this.getNamespace();
		return getSqlSession().selectList(namespace + "selectUserPvUvList", map);
	}
	
	public int updateSystem(SysConfigVo sysConfigVo) {
		return getSqlSession().update(this.getNamespace() + "updateSystem", sysConfigVo);
	}
}
